﻿using DapperExtensions;
using System;
namespace FineAdmin.Model
{
    [Table("BlogPosts")]
    /// <summary>
    /// BlogPosts 
    /// </summary>
    public class BlogPostsModel : Entity
    {
    

        /// <summary>
        /// 无 
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string BlogContent { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string Cover { get; set; }

        /// <summary>
        /// 文章摘要 
        /// </summary>
        public string Excerpt { get; set; }

        /// <summary>
        /// 分类ID 
        /// </summary>
        public int? CId { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string Author { get; set; }



        /// <summary>
        /// 无 
        /// </summary>
        public int? Clicks { get; set; }
        /// <summary>
        /// 1正常 2正常 3隐藏
        /// </summary>
        public int? State { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        [Computed]
        public string CName { get; set; }
        /// <summary>
        /// 赞
        /// </summary>
        public int? Likes { get; set; }
        /// <summary>
        /// 踩
        /// </summary>
        public int? Trample { get; set; }

        /// <summary>
        /// 分类ID的父ID
        /// </summary>
        [Computed]
        public int? PCId { get; set; }

        /// <summary>
        /// 纯文本
        /// </summary>
        [Computed]
        public string Text { get; set; }
    }
}